/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package alpes.aerolinea.persistencia;

import alpes.aerolinea.entities.ServicioVideoSeries;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateless;

/**
 *
 * @author Daniel
 */
@Stateless
public class PersistenciaServicesMock implements IPersistenciaServices {

    private static ArrayList sData;

    public PersistenciaServicesMock() {
        if (sData == null) {
            sData = new ArrayList();
            for (int i = 0; i < 6; i++) {
                ServicioVideoSeries serie = new ServicioVideoSeries(0, "Nombre " + i, "");
                sData.add(serie);
            }
        }
    }

    @Override
    public void create(Object obj) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void update(Object obj) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void delete(Object obj) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List findAll(Class c) {
        return sData;
    }

    @Override
    public Object findById(Class c, Object id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
